package snafu.framework.worlds;

public class Position {

	public int x;
	public int y;
	
	public Position(int x, int y) {
		this.x = x;
		this.y = y;
	}
	
	public Position(Position position) {
		if (position != null) {
			this.x = position.x;
			this.y = position.y;
		}
	}
	
	@Override
	public boolean equals(Object obj) {
		if (!(obj instanceof Position)) {
			return false;
		}
		
		Position that = (Position) obj;
		return this.x == that.x && this.y == that.y;
	}
	
	@Override
	public String toString() {
		return x + "/" + y;
	}
}
